package no.sachmuld.methodcombination.examples.reflection.validate;


import no.sachmuld.methodcombination.impl.validate.MethodCombinationValidationError;

import java.util.List;

/**
 *
 */
public class Main implements Runnable {

    @Override
    public void run() {


        List<MethodCombinationValidationError> errors = Foo.validate();
        for (MethodCombinationValidationError error : errors) {
            System.out.println(error);
        }

        Foo foo = new Foo();
        System.out.println(foo.bar());
        try {
            System.out.println(foo.baz());
        } catch (FooException e) {
            System.out.println(e.getClass().getName());
        }

    }

    public static void main(String... args) throws Exception {

        new Main().run();

    }

}